<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <script src="https://cdn.bootcss.com/jquery/3.4.1/jquery.min.js"></script>
    <script>
        $(function() {
            // var $tr = $(".td04").parent();
            // alert($tr.html());
            var $tr = $(".input01").parents("tr");
            alert($tr.html());
        });
    </script>
    <style>

    </style>
</head>

<body>
    <table border="1">
        <tr>
            <td>111</td>
            <td>111</td>
            <td>111</td>
            <td>111</td>
        </tr>
        <tr>
            <td>222</td>
            <td>333</td>
            <td>222</td>
            <td>222</td>
        </tr>
        <tr>
            <td>333</td>
            <td>333</td>
            <td>333
                <input class="input01" type="text"></input>
            </td>
            <td>333</td>
        </tr>
        <tr>
            <td>444</td>
            <td class="td04">444</td>
            <td>444</td>
            <td>444</td>
        </tr>
        <tr>
            <td>555</td>
            <td>555</td>
            <td>555</td>
            <td>555</td>
        </tr>
    </table>
</body>

</html>